body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    background-color: #f2f2f2;
    font-size: 14px;
    font-family: -apple-system, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #000;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* 顶部实现 */

/*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/

input {
    -webkit-appearance: none;
}

/*禁用长按页面时的弹出菜单*/
img {
    vertical-align: middle;
}
img,
a {
    -webkit-touch-callout: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: #666;
    text-decoration: none;
}

.clearfix:after {
    content: "";
    display: block;
    line-height: 0;
    visibility: hidden;
    height: 0;
    clear: both;
}

div {
    box-sizing: border-box;
}

/* 搜索模块 */
.search-index {
    display: flex;
    position: fixed;
    top: 0px;
    left: 50%;
    /* 兼容老版本浏览器 */
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    /* 固定的盒子必须有宽度 */
    width: 100%;
    /* 
        固定定位的盒子与父级没有关系，以屏幕为准，
        因此在上面设置width为100%的话此盒子会占满整个屏幕宽度
        所以下面使用max-width限制一下
    */
    max-width: 540px;
    min-width: 320px;
    height: 44px;
    background-color: #f6f6f6;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.search {
    position: relative;
    flex: 1;
    height: 26px;
    border: 1px #ccc solid;
    margin: 10px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 24px;
    padding-left: 25px;
    color: #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}

.search::before {
    position: absolute;
    left: 5px;
    top: 5px;
    content: '';
    width: 15px;
    height: 15px;
    background: url(../images/sprite.png) no-repeat -59px -279px;
    background-size: 104px auto;
    /* 这里auto可写可不写，因为是等比例缩放 */
}

.user {
    width: 44px;
    height: 44px;
    text-align: center;
    font-size: 12px;
    color: #2eaae0;
}

.user::before {
    content: '';
    display: block;
    width: 23px;
    height: 23px;
    background: url(../images/sprite.png) no-repeat -59px -194px;
    background-size: 104px;
    margin: 3px auto 0;
}

/* 焦点图模块 */
.focus {
    margin-top: 44px;
}

.focus img {
    width: 100%;
}

/* 局部导航栏 */
.local-nav {
    display: flex;
    height: 64px;
    margin: 3px 4px;
    background-color: #fff;
    border-radius: 8px;
}

.local-nav li {
    flex: 1;
}

.local-nav li a {
    display: flex;
    flex-direction: column;
    /* 这里是单行居中，因此用align-items，多行居中的话就用align-contens */
    align-items: center;
    padding-top: 10px;
}

.local-nav li [class^='local-nav'] {
    width: 32px;
    height: 32px;
    background: url(../images/localnav_bg.png) no-repeat 0 -0;
    background-size: 32px;
}

.local-nav li .local-nav-icon2 {
    background-position: 0 -32px;
}
.local-nav li .local-nav-icon3 {
    background-position: 0 -64px;
}
.local-nav li .local-nav-icon4 {
    background-position: 0 -96px;
}
.local-nav li .local-nav-icon5 {
    background-position: 0 -128px;
}
/* 主导航栏 */
nav {
    border-radius: 8px;
    margin: 0 4px 3px;
    overflow: hidden;
}
.nav-common {
    display: flex;
    height: 88px;
    background-color: pink;
}
.nav-common:nth-child(2) {
    margin: 3px 0;
}
.nav-common .nav-items {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* background-color: skyblue; */
}
.nav-common .nav-items a {
    flex: 1;
    text-align: center;
    line-height: 44px;
    color: #fff;
    font-size: 14px;
    /* 文字阴影 */
    text-shadow: 1px 1px rgba(0, 0, 0, .3);
}/* 去除第一个里面的a的下划线 */
.nav-common .nav-items:nth-child(1) a {
    border: none;
    background:url(../images/hotel.png) no-repeat bottom center;
    background-size: 121px;
}
.nav-items a:nth-child(1) {
    border-bottom: 1px #fff solid;
}

/* -n+2就是选前两个 */
.nav-common .nav-items:nth-child(-n+2) {
    border-right: 1px #fff solid;
}
.nav-common:nth-child(1) {
    background: -webkit-linear-gradient(left, #fa5a55, #fa994d);
}
.nav-common:nth-child(2) {
    background: -webkit-linear-gradient(left, #4b90ed, #53bced);
}
.nav-common:nth-child(3) {
    background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
}
/* 侧导航栏 */
.subnav-entry {
    display: flex;
    /* 换行 */
    flex-wrap: wrap;
    margin: 0 4px;
}
.subnav-entry li {
    /* 每个盒子占20%,相对于父亲来说 */
    flex: 20%;
}
.subnav-entry a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;
}
.subnav-entry [class^='subnav-entry'] {
    width: 28px;
    height: 24px;
    background-color: pink;
    background: url(../images/subnav-bg.png) no-repeat 0 0;
    background-size: 24px auto;
}
.subnav-entry .subnav-entry-icon2 {
    background-position: 0 -24px;
}
.subnav-entry .subnav-entry-icon3 {
    background-position: 0 -50px;
}
.subnav-entry .subnav-entry-icon4 {
    background-position: 0 -82px;
}
.subnav-entry .subnav-entry-icon5 {
    background-position: 0 -110px;
}
.subnav-entry .subnav-entry-icon6 {
    background-position: 0 -134px;
}
.subnav-entry .subnav-entry-icon7 {
    background-position: 0 -166px;
}
.subnav-entry .subnav-entry-icon8 {
    background-position: 0 -194px;
}
.subnav-entry .subnav-entry-icon9 {
    background-position: 0 -218px;
}
.subnav-entry .subnav-entry-icon10 {
    background-position: 0 -244px;
}
/* 销售模块 */
.sales-box {
    border-top: 1px solid #bbb;
    background-color: #fff;
    margin: 4px;
}
.sales-hd {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #ccc;
}
.sales-hd h2::after {
    position: absolute;
    top: 5px;
    left: 5px;
    content: '';
    width: 79px;
    height: 15px;
    background: url(../images/hot.png) no-repeat 0 -20px;
    background-size: 80px;
}
.sales-hd .more {
    position: absolute;
    top: 0px;
    right: 10px;
    background:-webkit-linear-gradient(left, #ff506c, #ff6bc6);
    border-radius: 10px;
    padding: 3px 15px;
}
.sales-hd .more::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 1px #fff solid;
    border-right: 1px #fff solid;
    margin-left: 3px;
    transform: rotate(45deg);
}
.row {
    display: flex;
}
.row a {
    flex: 1;
    border-bottom: 1px #ccc solid;
}
.row a:nth-child(1) {
    border-right: 1px #ccc solid;
}
.row a img {
    width: 100%;
}
/* 底部导航 */
.footer-nav{
    display: flex;
    background-color: #fff;
}
.footer-nav .nav-item {
    flex: 1;
}
.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-item .item-icon {
    width: 34px;
    height: 22px;
    background:url(../images/sprite.png) no-repeat -55px -150px;
    background-size: 104px auto;
}
.nav-item:nth-child(2) span[class="item-icon"] {
    background-position: -55px -171px;
}
.nav-item:nth-child(3) span[class="item-icon"] {
    background-position: -51px -307px;
}